﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace MyLib
{
    public class DataParameter
    {
        public DataParameter()
        {
        }
        public DataParameter(string parameterName,object value,DbType dbType)
        {
            _ParameterName = parameterName;
            _Value = value;
            _DbType = dbType;
        }

        string _ParameterName;

        public string ParameterName
        {
            get { return _ParameterName; }
            set { _ParameterName = value; }
        }

        object _Value;

        public object Value
        {
            get {
                if (_Value == null)
                {
                    _Value = DBNull.Value;
                }
                return _Value; }
            set
            {
                _Value = value; }
        }

        DbType _DbType;

        public DbType DbType
        {
            get { return _DbType; }
            set { _DbType = value; }
        }
    }
}
